%%
fid = fopen('C:\Manoj\projects\ace\pcp_amie\spidr_jan_jun_2002_edited.txt','rt');

flag = 1;
icount=1;
while flag == 1,
S = fscanf(fid,'%s',1);
if length(S) < 5,
    flag = 0;
    fclose all;
    break;
end;
hh = fscanf(fid,'%d',1);
mm = fscanf(fid,'%d',1);
fday(icount) = datenum(datevec(S,2))+(hh/24)+(mm/(24*60));
pcp(icount) = fscanf(fid,'%f',1);
icount=icount+1;
end;
L = pcp>10e5;pcp(L) = NaN;
%%
load c:\manoj\temp\pcp_2000_jan_june pcp fday;
pcp_amie = pcp;
fday_pcp_amie = fday;
load c:\manoj\temp\spidr_jul_dec_2000 pcp fday;
pcp_amie(end+1:end+length(pcp))=pcp;
fday_pcp_amie(end+1:end+length(pcp))=fday;
load c:\manoj\temp\spidr_jan_jun_2001 pcp fday;
pcp_amie(end+1:end+length(pcp))=pcp;
fday_pcp_amie(end+1:end+length(pcp))=fday;
load c:\manoj\temp\spidr_jul_dec_2001 pcp fday;
pcp_amie(end+1:end+length(pcp))=pcp;
fday_pcp_amie(end+1:end+length(pcp))=fday;
load c:\manoj\temp\spidr_jan_jun_2002 pcp fday;
pcp_amie(end+1:end+length(pcp))=pcp;
fday_pcp_amie(end+1:end+length(pcp))=fday;
load c:\manoj\temp\spidr_jul_dec_2002 pcp fday;
pcp_amie(end+1:end+length(pcp))=pcp;
fday_pcp_amie(end+1:end+length(pcp))=fday;
fday_pcp_amie = fday_pcp_amie-datenum(2000,1,1);

%save c:\manoj\projects\ace\pcp_amie pcp_amie fday_pcp_amie;


